package EX2;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class demo3_1 {
    public static void main(String[] args) throws IOException {
        File f=new File("C:/filea/a.txt");
        try(Writer writer=new FileWriter(f)){
            writer.write("我爱你爱你爱你爱你爱你");
            writer.flush();
        }
    }
}
